package com.anlu.base.admin.api.feign;

import com.anlu.base.admin.api.entity.SysLog;
import com.anlu.base.common.core.constant.ServiceNameConstants;
import com.anlu.base.common.core.util.R;
import com.anlu.base.common.feign.annotation.NoToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteLogService",value = ServiceNameConstants.UPMS_SERVICE)
public interface RemoteLogService {

    /**
     * 保存日志 (异步多线程调用，无token)
     * @param sysLog 日志实体
     * @return succes、false
     */
    @NoToken
    @PostMapping("/log/save")
    R<Boolean> saveLog(@RequestBody SysLog sysLog);
}
